import java.util.ArrayList;
import java.util.List;

public class Main {

	public static void main(String[] args) {
        List<Car> cars = new ArrayList<Car>();
        cars.add(Factory.createCarByName("Bmw"));
        cars.add(Factory.createCarByName("MercedesBenz"));

        for (Car car : cars) {
            car.createCar();
        }
        
    }
}
